#!/usr/bin/env python
# coding=utf-8
s=input("Enter a line:")
print("The number of words inthe line are %d"%(len(s.split(" "))))
